<?php
class nguoidungbs {
    private $MaND       = 0;
    private $TenND      = "";
    private $MatKhau    = "";
    private $Quyen      = "";
    
    public function Them(){
        $db = new nguoidungdb();
        $db->Them($this->MaND, $this->TenND, $this->MatKhau, $this->Quyen);
    }
    
    public function CapNhatQuyen(){
        $db = new nguoidungdb();
        $db->CapNhatQuyen($this->MaND, $this->Quyen);
    }
    
    public function ThongTinNguoiDung(){
        $db = new nguoidungdb();
        $db->ThongTinNguoiDug($this->MaND);
    }
    
    public function DoiMatKhau($matKhau, $matKhauMoi){
        $db = new nguoidungdb();
        $db->DoiMatKhau($matKhau, $matKhauMoi);
    }
    
    public function Xoa(){
        $db = new nguoidungdb();
        $db->Xoa();
    }
}
